<html>
<head><meta charset="utf-8"><title>Token error in &lt;anon&gt; · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Token.20error.20in.20.3Canon.3E.html">Token error in &lt;anon&gt;</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="246953498"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Token%20error%20in%20%3Canon%3E/near/246953498" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sparrow Li <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Token.20error.20in.20.3Canon.3E.html#246953498">(Jul 23 2021 at 08:42)</a>:</h4>
<p>I just ran into a very strange compilation error:</p>
<p>error: unknown start of token: \`<br>
   --&gt; &lt;anon&gt;:1:15<br>
    |<br>
  1 | error[E0554]: \`#![feature]\` may not be used on the stable release channel<br>
    |               ^<br>
    |<br>
  help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not</p>
<p>And the source code location is displayed as &lt;anon&gt;, so I can't determine the exact location of the error.</p>



<a name="246953654"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Token%20error%20in%20%3Canon%3E/near/246953654" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sparrow Li <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Token.20error.20in.20.3Canon.3E.html#246953654">(Jul 23 2021 at 08:44)</a>:</h4>
<p>Can someone tell me how to find the exact location of the error?</p>



<a name="246956809"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Token%20error%20in%20%3Canon%3E/near/246956809" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Token.20error.20in.20.3Canon.3E.html#246956809">(Jul 23 2021 at 09:25)</a>:</h4>
<p>What command did you use to get this error? What is printed before this error? Is this a doctest or markdown test? Did you use <code> ``` </code> instead of <code> ```plain </code> to wrap an error message?</p>



<a name="246958557"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Token%20error%20in%20%3Canon%3E/near/246958557" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sparrow Li <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Token.20error.20in.20.3Canon.3E.html#246958557">(Jul 23 2021 at 09:47)</a>:</h4>
<p>Thanks for helping!<br>
It's just a normal <code>cargo build</code> IMO.<br>
Here are all the commands and printed(I manually added the escape characters before `.):</p>
<p>make[2]: Leaving directory '/root/Documents/V2R2_trunk/application/src/apps/web_host/ldflib'<br>
LD_PRELOAD= cargo build --verbose --release --target=aarch64-unknown-linux-gnu --target-dir=/root/Documents/V2R2_trunk/application/src/apps/web_host/out<br>
error: failed to run <code>rustc</code> to learn about target-specific information</p>
<p>Caused by:<br>
  process didn't exit successfully: <code>rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg</code> (exit code: 1)<br>
  --- stdout</p>
<hr>
<p>lib___.rlib<br>
<a href="http://lib___.so">lib___.so</a><br>
<a href="http://lib___.so">lib___.so</a><br>
  lib___.a<br>
<a href="http://lib___.so">lib___.so</a><br>
  /usr/local<br>
  debug_assertions<br>
  proc_macro<br>
  target_arch="x86_64"<br>
  target_endian="little"<br>
  target_env="gnu"<br>
  target_family="unix"<br>
  target_feature="fxsr"<br>
  target_feature="sse"<br>
  target_feature="sse2"<br>
  target_os="linux"<br>
  target_pointer_width="64"<br>
  target_vendor="unknown"<br>
  unix</p>
<p>--- stderr<br>
  error: unknown start of token: \`<br>
   --&gt; &lt;anon&gt;:1:15<br>
    |<br>
  1 | error[E0554]: \`#![feature]\` may not be used on the stable release channel<br>
    |               ^<br>
    |<br>
  help: Unicode character '\`' (Grave Accent) looks like ''' (Single Quote), but it is not<br>
    |<br>
  1 | error[E0554]:\ '#![feature]\` may not be used on the stable release channel<br>
    |               ^</p>
<p>error: unknown start of token: \`<br>
   --&gt; &lt;anon&gt;:1:27<br>
    |<br>
  1 | error[E0554]: \`#![feature]\` may not be used on the stable release channel<br>
    |                           ^<br>
    |<br>
  help: Unicode character '\`' (Grave Accent) looks like ''' (Single Quote), but it is not<br>
    |<br>
  1 | error[E0554]:\ `#![feature]' may not be used on the stable release channel<br>
    |                           ^</p>
<p>error: unknown start of token: \`<br>
   --&gt; &lt;anon&gt;:9:44<br>
    |<br>
  9 | For more information about this error, try <code>rustc --explain E0554</code>.<br>
    |                                            ^<br>
    |<br>
  help: Unicode character '\`' (Grave Accent) looks like ''' (Single Quote), but it is not<br>
    |<br>
  9 | For more information about this error, try 'rustc --explain E0554`.<br>
    |                                            ^</p>
<p>error: unknown start of token: \`<br>
   --&gt; &lt;anon&gt;:9:66<br>
    |<br>
  9 | For more information about this error, try <code>rustc --explain E0554</code>.<br>
    |                                                                  ^<br>
    |<br>
  help: Unicode character '\`' (Grave Accent) looks like ''' (Single Quote), but it is not<br>
    |<br>
  9 | For more information about this error, try `rustc --explain E0554'.<br>
    |                                                                  ^</p>
<p>error: aborting due to 4 previous errors</p>
<p>Makefile:20: recipe for target 'PORTAL' failed<br>
make[1]: *** [PORTAL] Error 101<br>
make[1]: Leaving directory '/root/Documents/V2R2_trunk/application/src/apps/web_host'<br>
platform.mk:53: recipe for target 'aarch64-linux' failed<br>
make: *** [aarch64-linux] Error 2</p>



<a name="246960480"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Token%20error%20in%20%3Canon%3E/near/246960480" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Token.20error.20in.20.3Canon.3E.html#246960480">(Jul 23 2021 at 10:11)</a>:</h4>
<p>Does this project use a rustc wrapper? It looks like something passes an error message of rustc to the stdin of another rustc invocation.</p>



<a name="246960904"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Token%20error%20in%20%3Canon%3E/near/246960904" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sparrow Li <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Token.20error.20in.20.3Canon.3E.html#246960904">(Jul 23 2021 at 10:17)</a>:</h4>
<p>Didn't Cargo do this?</p>



<a name="246961349"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Token%20error%20in%20%3Canon%3E/near/246961349" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Token.20error.20in.20.3Canon.3E.html#246961349">(Jul 23 2021 at 10:23)</a>:</h4>
<p>It shouldn't pass in an error message from another rustc invocation.</p>



<a name="246961698"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Token%20error%20in%20%3Canon%3E/near/246961698" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Sparrow Li <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Token.20error.20in.20.3Canon.3E.html#246961698">(Jul 23 2021 at 10:27)</a>:</h4>
<p>This project shouldn't have used rustc wrapper. It just used Cargo. It's so weird.</p>



<a name="246996585"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Token%20error%20in%20%3Canon%3E/near/246996585" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> fee1-dead <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Token.20error.20in.20.3Canon.3E.html#246996585">(Jul 23 2021 at 16:01)</a>:</h4>
<p><span class="user-mention silent" data-user-id="353056">Sparrow Li</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/Token.20error.20in.20.3Canon.3E/near/246961698">said</a>:</p>
<blockquote>
<p>This project shouldn't have used rustc wrapper. It just used Cargo. It's so weird.</p>
</blockquote>
<p>That means you used a build script?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>